//引入fs模块
const fs = require("fs");

function readOne() {
    return new Promise((resolve, reject) => {
        fs.readFile('one.md', (err, data) => {
            if(err) reject(err);
            resolve(data);
        })
    })
}
function readTwo() {
    return new Promise((resolve, reject) => {
        fs.readFile('two.md', (err, data) => {
            if(err) reject(err);
            resolve(data);
        })
    })
}
function readThree() {
    return new Promise((resolve, reject) => {
        fs.readFile('three.md', (err, data) => {
            if(err) reject(err);
            resolve(data);
        })
    })
}

async function main() {
    let one = await readOne();
    let two = await readTwo();
    let three = await readThree();

    console.log(one.toString());
    console.log(two.toString());
    console.log(three.toString());
}
//主函数调用
main()